package cn.iocoder.yudao.module.promotion.linkage21.pojo.vo;

import cn.iocoder.yudao.framework.business.basic.annotation.AdminJsonView;
import cn.iocoder.yudao.framework.business.basic.annotation.AppJsonView;
import cn.iocoder.yudao.framework.business.basic.pojo.vo.MerchantScopeVO;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 视图对象
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/10
 */
@Data
public class Linkage21ProductVO extends MerchantScopeVO {

    @Schema(description = "商品SPU编号")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private Long spuId;

    @Schema(description = "商品SKU编号")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private Long skuId;

    @Schema(description = "名称")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private String name;

    @Schema(description = "图片")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private String picUrl;

    @Schema(description = "价格，单位为分")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private Integer price;

    @Schema(description = "库存")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private Integer stock;

    @Schema(description = "单位，如：次、条、瓶、份")
    @JsonView({AdminJsonView.class, AppJsonView.class})
    private String unit;

    @Schema(description = "直推奖百分比，0-100之间的小数")
    @JsonView({AdminJsonView.class})
    private Double fatherPercent;

    @Schema(description = "间推奖百分比，0-100之间的小数")
    @JsonView({AdminJsonView.class})
    private Double grandpaPercent;

    @Schema(description = "培育奖百分比，0-100之间的小数")
    @JsonView({AdminJsonView.class})
    private Double fosterPercent;

}
